package com.itheima.strengthen.test02.dao;

import com.itheima.strengthen.test02.domain.Cask;
import com.itheima.strengthen.test02.domain.NuoZhou;
import com.itheima.strengthen.test02.domain.Skills;

public class jiutongDao {
    static Cask jiutong = new Cask();

    public void sendAtrribute(Cask jiuTong) {
        this.jiutong = jiuTong;
    }

    public Cask mpAtrributeChange(Skills skills) {
        jiutong.sethMp(jiutong.gethMp() - skills.getsMp());
        return jiutong;
    }

    public Cask hpAtrributeChange(Skills skills) {
        jiutong.sethHp((int) (jiutong.gethHp() - skills.getsAttack()));
        return jiutong;
    }
    public Cask hpAtrributeChange(Double hAttack) {
        jiutong.sethHp((int) (jiutong.gethHp() - hAttack));
        return jiutong;
    }
}
